package com.vr.xuecheng.feign.client;

import com.vr.xuecheng.feign.dto.CoursePublishDTO;
import com.vr.xuecheng.feign.fallback.CheckCodeFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author hzh
 * @date 2025/03/21
 * 课程发布的feign接口
 */
@FeignClient(
        name = "xuecheng-plus-content-service",
        path = "/content",
        fallbackFactory = CheckCodeFallbackFactory.class,
        contextId = "coursePublishClient"
)
public interface CoursePublishClient {
    @GetMapping("/coursepublish/{course-id}")
    CoursePublishDTO getCoursePublishInfoById(@PathVariable("course-id") Long courseId);
}
